package com.ruoyi.business.approvalflow.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.approvalflow.domain.TRegisterApprovalProcessConfig;
import com.ruoyi.business.approvalflow.mapper.TRegisterApprovalProcessConfigMapper;
import com.ruoyi.business.approvalflow.service.ITRegisterApprovalProcessConfigService;
import com.ruoyi.business.approvalflow.vo.TRegisterApprovalProcessConfigVo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 审批流程配置Service业务层处理
 *
 * @author Tellsea
 * @date 2025-06-22
 */
@Service
public class TRegisterApprovalProcessConfigServiceImpl extends ServiceImpl<TRegisterApprovalProcessConfigMapper, TRegisterApprovalProcessConfig> implements ITRegisterApprovalProcessConfigService {

    @Override
    public TableDataInfo<TRegisterApprovalProcessConfigVo> queryList(TRegisterApprovalProcessConfigVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterApprovalProcessConfigVo> queryAll(TRegisterApprovalProcessConfigVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterApprovalProcessConfigVo queryById(String processId) {
        return this.baseMapper.queryById(processId);
    }
}
